package AMT;

import java.util.ArrayList;

public class User {
    //用来存储数据的对象
    private String name;
    private String password;
    private double money;
    private static ArrayList<Record> List;//储存记录的集合

    static {
        List = new ArrayList<Record>();
    }

    public User() {
    }

    public User(String name, String password, double money) {
        this.name = name;
        this.password = password;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public ArrayList<Record> getList() {
        return List;
    }

    public void setList(ArrayList<Record> list) {
        List = list;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", money=" + money +
                '}';
    }
}
